package routes

import (
	"github.com/gin-gonic/gin"
	"go-caipu/pkg/install/handlers"
)

func SetupRoutes(router *gin.Engine) {
	// 安装相关路由
	install := router.Group("/api/install")
	{
		install.POST("/dbtest", handlers.CheckDBTest)
		install.POST("/redistest", handlers.CheckRedisTest)
		install.GET("/status", handlers.GetInstallStatus) //判断是否安装
		install.POST("/configure", handlers.ConfigureDatabase)
		install.POST("/finish", handlers.FinishInstall)
	}
}
